package com.aiit.service;

import com.aiit.pojo.Post;
import com.aiit.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: LuTao
 * @Date: 2022/04/29/21:42
 */
public interface PostService extends IService<Post> {
    //添加岗位
    int posts(Post post);
    //根据用户id查询所有岗位
    Post findPostByUserId(Integer id);
    List<Post> PostAll();

    //根据用户的id查询全部的用户所在的岗位
//    List<User> findPostByUserId(User user);
}
